package dev.ece.core.engine;

import org.lwjgl.opengl.GL11;

import dev.ece.core.vertex.EBO;
import dev.ece.core.vertex.VAO;
import dev.ece.core.vertex.VBO;

public class LoaderFlush {

	private boolean finished;
	
	public void finish() {
		if(!this.isFinished()) {
			this.finished = true;
			//渲染结束
			VBO.unbind();
			EBO.unbind();
			VAO.unbind();
			GL11.glFlush();
			GL11.glFinish();
		}
	}

	public boolean isFinished() {
		return finished;
	}
	
}
